package com.atguigu.common.constant;

import org.springframework.stereotype.Component;

/**
 * @Author 梅超凡
 * @Date 2024/11/18~11:46
 * @Description Redis常量类
 *
*/
@Component
public class RedisConstant {
    //构建与管理员登录相关的键名
    public static final String ADMIN_LOGIN_PREFIX = "admin:login:";
    //构建与管理员登录验证码有效期相关的键名
    public static final Integer ADMIN_LOGIN_CAPTCHA_TTL_SEC = 60;
    //构建与APP登录相关的键名
    public static final String APP_LOGIN_PREFIX = "app:login:";
    //构建与APP登录验证码相关的键名
    public static final Integer APP_LOGIN_CODE_RESEND_TIME_SEC = 60;
    //构建与APP登录验证码有效期相关的键名
    public static final Integer APP_LOGIN_CODE_TTL_SEC = 60 * 10;
}